.tab {
    display: flex;
    text-align: center;
    line-height: 46px;
}
.tab > span {
    flex: 1;
}

.active {
    color: red;
}